package wyx240426;

import java.math.BigDecimal;

public class ComputerBean {
    BigDecimal num1,num2,result;
    String operator="+";

    public ComputerBean() {
    }

    public BigDecimal getNum1() {
        return num1;
    }

    public void setNum1(BigDecimal num1) {
        this.num1 = num1;
    }

    public BigDecimal getNum2() {
        return num2;
    }

    public void setNum2(BigDecimal num2) {
        this.num2 = num2;
    }

    public void setOperator(String operator) {
        this.operator = operator.trim();
    }
    public String getOperator() {
        return operator;
    }
    public BigDecimal getResult() {
        return result;
    }
    public void setResult(BigDecimal result) {
        this.result = result;
    }
}
